﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Modularity;

namespace Framework
{
    [DependsOn(

    )]
    public class FrameworkModule : AbpModule
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            var configuration = context.Services.GetConfiguration();
            IServiceCollection serviceDescriptors = context.Services;
            //配置注册中心
            //context.Services.AddConsul(configuration);
            ////配置链路监控
            //context.Services.UserSkyAPM();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        public override void OnApplicationInitialization(ApplicationInitializationContext context)
        {
            var app = context.GetApplicationBuilder();
            //app.UseHealthChecks("/health");
        }
    }
}
